package com.daisyday.dynamicagent;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class InvocationHand implements InvocationHandler {
    MovableImple movableImple=new MovableImple();
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("method: "+method.getName()+" start...");
        Object invoke = method.invoke(movableImple,args);
        System.out.println("method: "+method.getName()+" end...");
        return invoke;
    }
}
